package com.ssy.lingxi.purchase.repository;

import com.ssy.lingxi.purchase.entity.PurchaseInnerHistory;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-10-28
 */
@Repository
public interface PurchaseInnerHistoryRepository extends JpaRepository<PurchaseInnerHistory, Long>, JpaSpecificationExecutor<PurchaseInnerHistory> {
    List<PurchaseInnerHistory> findByMemberIdAndRoleIdAndOrderId(Long buyerMemberId, Long buyerRoleId, Long orderId, Sort sort);
}
